package com.cymal.entity.po;

import lombok.Data;

import java.time.LocalDateTime;

@Data
public abstract class SObj {


    /**
     * 主键
     */
    private Long id;


    /**
     * 乐观锁
     */
    private long version = 0;


    /**
     * 逻辑删除
     */
    private boolean removed = false;


    /**
     * 创建时间
     */
    private LocalDateTime creativeTime = LocalDateTime.now();


    /**
     * 最近修改时间
     */
    private LocalDateTime updateTime = LocalDateTime.now();


}
